import java.io.PrintStream;

public class MyObject {
    public static int staticVar;
    public int instanceVar;

    public static void main(String[] args) {
        int x = 32768;
//        Object
        MyObject myObj = new MyObject();
        MyObject.staticVar = x; // putstatic
        x = MyObject.staticVar; // getstatic
        myObj.instanceVar = x; //putfield
        x = myObj.instanceVar;  // getfield
        Object obj = myObj;
        if (obj instanceof MyObject){
             // instanceof
            myObj = (MyObject) obj; // checkcast
            System.out.println(myObj.instanceVar);
        }

    }
}
